
<include file="Public/header"/><body>
	 
<div class="tab_nav tab_nav_none">
    <div class="header">
	<a href="javascript:void(0);" onClick="javascript:history.go(-1);" class="header_l"><i class="fa fa-angle-left"></i></a>
      <div class="h-mid">訂單詳情   </div>
	<a href="{:U('Index/index')}" class="header_r"><i class="fa fa-home"></i></a>
	  
    </div>
</div>

<include file="Public/menu"/>

<form action="{:U('Mobile/Payment/getCode')}" method="post" name="cart4_form" id="cart4_form">
<div id="tbh5v0">						
	<div class="order">
	
		<div class="detail_top">
			<div class="lan">
				<dl>
				<dt class="dingdan_1"></dt>
				<dd><span>訂單狀態：{$order_info.order_status_desc}</span><br>
				    <span class="dingdanhao">訂單號&nbsp;:&nbsp;{$order_info.order_sn}</span><br>
				    <span>配送費用&nbsp;:￥{$order_info.shipping_price}</span>
				</dd>
				</dl>
			</div>
		
			<dl style="border-bottom:1px solid #eeeeee">
			<dt class="dingdan_2"></dt>
			
			
			<dd><span class="zhif">支付方式&nbsp;:&nbsp;{$order_info.pay_name}</span>
				<span class="zhif">應付款金額&nbsp;:&nbsp;￥{$order_info.order_amount}</span>			 			 
			</dd>
			</dl>
		 <if condition="$order_info.shipping_code neq 'smzt'">
			<dl>
			<dt class="dingdan_3"></dt>
           
			<dd><h3>收貨人姓名&nbsp;:&nbsp;{$order_info.consignee}<em>{$order_info.mobile}</em></h3>
				<div class="adss">詳細地址&nbsp;:&nbsp;{$region_list[$order_info['province']]['name']},{$region_list[$order_info['city']]['name']},{$region_list[$order_info['district']]['name']},{$order_info.address}</div>
			</dd>
            
			</dl></if>
		
			<if condition="$order_info[shipping_time] gt 0">
			<dl style="border-top:1px solid #eeeeee; margin-top:10px; height:70px; padding-bottom:0px;">
			<dt class="dingdan_4"><img src="__STATIC__/images/wuliuimg.png" width="30" height="70"></dt>
			<dd><h3>快遞單號:{$order_info.invoice_no}</h3>
			<p><a href="{:U('User/express',array('order_id'=>$order_info['order_id']))}" target="_blank">查看物流</a></p>
			</dd>
			</dl>
			</if>
		</div>
		
		<div class="ord_list1">
			<h2>mattmatt</h2>
            
	<!--商品列表-->	
    <volist name="order_info.goods_list" id="good">            
			<div class="order_list">
		        <a href="{:U('/Mobile/Goods/goodsInfo',array('id'=>$good['goods_id']))}">
		          <dl>
		          <dt><img src="{$good.goods_id|goods_thum_images=100,133}"></dt>
		          <dd class="name" class="pice" style=" width:55%;">
	                  <strong>{$good.goods_name}</strong><span>{$good.spec_key_name}</span>
                   </dd>
		          <dd class="pice" style=" font-size:13px; color:#E50000; width:25%;">￥{$good['member_goods_price']}<em>x{$good['goods_num']}</em></dd>
		          <dd class="pice" style=" font-size:13px; color:#E50000; width:25%;">                  
                  	<em>
                          <if condition="($order_info[return_btn] eq 1) and ($good[is_send] eq 1)">
                          	<a href="{:U('Mobile/User/return_goods',array('order_id'=>$order_info[order_id],'order_sn'=>$order_info[order_sn],'goods_id'=>$good[goods_id],'spec_key'=>$good['spec_key']))}" style="color:#999;">申請售後</a>
                          </if>
                    </em>
                  </dd>
		          </dl>
		          </a>
		          <div class="pic" style=" border:0;"><span>小計：</span><strong>￥{$good['member_goods_price'] * $good['goods_num']}</strong></div>
		    </div>
	</volist>
	<!-- end 商品列表-->										       
			<div class="jiage">
				<p>商品總價&nbsp;:&nbsp;<span class="price">￥{$order_info.goods_price}</span></p>				
				<p>配送費用&nbsp;:&nbsp;<span class="price">￥{$order_info.shipping_price}</span></p>
                                <p>優惠券&nbsp;:&nbsp;<span class="price">￥{$order_info.coupon_price}</span></p>
				<p>積分&nbsp;:&nbsp;<span class="price">￥{$order_info.integral_money}</span></p>	
                                <p>余額&nbsp;:&nbsp;<span class="price">￥{$order_info.user_money}</span></p>	
                                <p>活動優惠&nbsp;:&nbsp;<span class="price">￥{$order_info.order_prom_amount}</span></p>                                
				<p>應付款金額&nbsp;:&nbsp;<span class="price1">￥{$order_info.order_amount}</span></p>						
			</div>
		</div>
		  
		<section class="qita">

			<div class="detail_top">
				<dl>
				<dt class="dingdan_2"></dt>
				<dd><span>配送方式：{$order_info.shipping_name}</span><br>
                <if condition="$order_info.shipping_code eq 'smzt'">
				    <span>自提地址：广东省中山市三乡镇鸦岗路口鸦岗大街兴隆制衣厂三厂二楼</span>
                </if>
				</dd>
				</dl>
		</div>
			
			   
		</section>
		
		<div style=" height:50px;" class="detail_order_bottom"></div> 
		
		<input type="radio" style="display: none;" value="pay_code=weixin" checked="checked" name="pay_radio" />
		<input type="hidden" name="order_id" id="order_id" value="{$order_info.order_id}" />
		<div class="detail_dowm">
			<div class="anniu1">
                <if condition="$order_info.cancel_btn eq 1"><a onClick="cancel_order({$order_info.order_id})" class="on_comment">取消訂單</a></if>
                <if condition="$order_info.pay_btn eq 1"><a href="javascript:void();" onClick="gopayweixin({$order_info.order_id})" class="on_comment">立即付款</a></if>
                <if condition="$order_info.receive_btn eq 1"><a href="{:U('Mobile/User/order_confirm',array('id'=>$order_info['order_id']))}" class="on_comment">收貨確認</a></if>    
                <if condition="$order_info.shipping_btn eq 1"><a href="{:U('User/express',array('order_id'=>$order_info['order_id']))}" class="on_comment">查看物流</a></if>
			</div> 
		</div>
		
		<script>
			$(function() {
				if(!$('.on_comment').html())
					{
						$('.detail_order_bottom,.detail_dowm').hide();
					}
			});
		</script>
		
		
	</div>		
</div></form>
<script> 
	function gopayweixin(id){
        $('#cart4_form').submit();
        return;
	}
    //取消訂單
    function cancel_order(id){
        if(!confirm("確定取消訂單?"))
            return false;
        location.href = "/index.php?m=Mobile&c=User&a=cancel_order&id="+id;
    }
</script>
</body>
</html>